import config from "@/config";
import http from "@/utils/request";
export default {
	page: {
		url: `${config.API_URL}/ai/wiki/application/page/list`,
		name: "分页列表",
		get: async function (data) {
			return await http.post(this.url, data);
		},
	},
	update: {
		url: `${config.API_URL}/ai/wiki/application/update`,
		name: "更新",
		post: async function (data) {
			return await http.post(this.url, data);
		},
	},
	remove: {
		url: `${config.API_URL}/ai/wiki/application/delete`,
		name: "删除",
		post: async function (data) {
			return await http.get(this.url + "?id=" + data);
		},
	},
	detail: {
		url: `${config.API_URL}/ai/wiki/application/detail`,
		name: "详情",
		post: async function (id) {
			return await http.get(this.url + "?id=" + id);
		},
	},

	create: {
		url: `${config.API_URL}/ai/wiki/application/add`,
		name: "创建",
		post: async function (data) {
			return await http.post(this.url, data);
		},
	},
};
